1 From deb3ddeb18652118956fb581a39ac299e1ee5623 Mon Sep 17 00:00:00 2001
2 From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
3 Date: Fri, 7 Mar 2025 02:26:25 +0200
4 Subject: [PATCH] wifi: rtw88: Enable the new RTL8814AE/RTL8814AU drivers
6 RTL8814A is a wifi 5 chip with 4 RF paths (chains), 3 spatial streams,
7 and probably no Bluetooth.
9 The USB-based RTL8814AU can reach 800 Mbps in the 5 GHz band in USB 3
10 mode. In USB 2 mode it only uses 2 spatial streams.
12 The PCI-based RTL8814AE is not as popular and didn't get as much
13 testing so it's unclear how fast it goes. It's more like a bonus on top
14 of the RTL8814AU support.
16 Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
17 Acked-by: Ping-Ke Shih <pkshih@realtek.com>
18 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
19 Link: https://patch.msgid.link/5795b0a7-511e-40b5-ac36-476b63f174c7@gmail.com
21 drivers/net/wireless/realtek/rtw88/Kconfig | 25 +++++++++++++++++++++
22 drivers/net/wireless/realtek/rtw88/Makefile | 9 ++++++++
23 2 files changed, 34 insertions(+)
27 @@ -1138,6 +1138,9 @@ config BACKPORTED_RTW88_8821A
28 config BACKPORTED_RTW88_8812A
31 +config BACKPORTED_RTW88_8814A
34 config BACKPORTED_RTW88_8822BE
37 @@ -1183,6 +1186,12 @@ config BACKPORTED_RTW88_8821AU
38 config BACKPORTED_RTW88_8812AU
41 +config BACKPORTED_RTW88_8814AE
43 + default RTW88_8814AE
44 +config BACKPORTED_RTW88_8814AU
46 + default RTW88_8814AU
47 config BACKPORTED_RTW88_DEBUG
50 --- a/drivers/net/wireless/realtek/rtw88/Kconfig
51 +++ b/drivers/net/wireless/realtek/rtw88/Kconfig
52 @@ -68,6 +68,10 @@ config RTW88_8812A
61 tristate "Realtek 8822BE PCI wireless network adapter"
63 @@ -251,6 +255,30 @@ config RTW88_8812AU
65 802.11ac USB wireless network adapter
68 + tristate "Realtek 8814AE PCI wireless network adapter"
75 + Select this option will enable support for 8814AE chipset
77 + 802.11ac PCIe wireless network adapter
80 + tristate "Realtek 8814AU USB wireless network adapter"
87 + Select this option will enable support for 8814AU chipset
89 + 802.11ac USB wireless network adapter
92 bool "Realtek rtw88 debug support"
94 --- a/drivers/net/wireless/realtek/rtw88/Makefile
95 +++ b/drivers/net/wireless/realtek/rtw88/Makefile
96 @@ -94,6 +94,15 @@ rtw88_8821au-objs := rtw8821au.o
97 obj-$(CPTCFG_RTW88_8812AU) += rtw88_8812au.o
98 rtw88_8812au-objs := rtw8812au.o
100 +obj-$(CPTCFG_RTW88_8814A) += rtw88_8814a.o
101 +rtw88_8814a-objs := rtw8814a.o rtw8814a_table.o
103 +obj-$(CPTCFG_RTW88_8814AE) += rtw88_8814ae.o
104 +rtw88_8814ae-objs := rtw8814ae.o
106 +obj-$(CPTCFG_RTW88_8814AU) += rtw88_8814au.o
107 +rtw88_8814au-objs := rtw8814au.o
109 obj-$(CPTCFG_RTW88_PCI) += rtw88_pci.o
110 rtw88_pci-objs := pci.o
114 @@ -375,6 +375,7 @@ RTW88_8821C=
122 @@ -390,6 +391,8 @@ RTW88_8821CS=